package com.naton.common.extensions

import android.view.View

/**
 * @time: 2022/1/26
 * @author: lifuling
 * @version: v1.0
 * @file_desc:View的扩展函数
 */

fun View.visible(visible : Boolean){
    visibility = if (visible){
        View.VISIBLE
    }else {
        View.GONE
    }
}